From: Aaron M. Ucko Date: Mon, 7 Sep 2020 02:57:35 +0000 (-0400) Subject: Support GCC 10+. X-Git-Tag: archive/raspbian/2.17.0+ds-6+rpi1^2^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f56f264a3ae4a9b00e0b516117417f7a7a80c7fc;p=ncbi-blast%2B.git Support GCC 10+. Debian-Bug: 957581. * ncbifile.cpp (s_GetFileSystemInfo): Formally cast st.f_type to avoid narrowing errors for cases with the high bit set when that field is a 32-bit signed integer (as on i386). Gbp-Pq: Name support_gcc10 --- diff --git a/c++/src/corelib/ncbifile.cpp b/c++/src/corelib/ncbifile.cpp index d42a29a4..1b33c100 100644 --- a/c++/src/corelib/ncbifile.cpp +++ b/c++/src/corelib/ncbifile.cpp @@ -5178,7 +5178,7 @@ void s_GetFileSystemInfo(const string& path, GET_STATFS_INFO; if (flags & (fFSI_Type | fFSI_DiskSpace)) { - switch (st.f_type) { + switch (static_cast(st.f_type)) { case 0xADF5: info->fs_type = CFileUtil::eADFS; break; case 0xADFF: info->fs_type = CFileUtil::eAFFS; break; case 0x5346414F: info->fs_type = CFileUtil::eAFS; break;